package com.eight.voteDao;

import com.eight.entity.VoteUser;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

@Repository
public interface VoteUserDao extends JpaRepository<VoteUser,Integer> {

    @Query(value = "select * from voteuser where email = ?",nativeQuery = true)
    VoteUser findVoteUserByEmail(String email);
}
